home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / gasmania.swf / scripts / __Packages / CheckGoods.as < prev    next >
Encoding:
Text File  |  2007-10-01  |  18.5 KB  |  487 lines

  1. var ┬º\x01┬º = 356;
  2. loop0:
  3. while(true)
  4. {
  5.    if(eval("\x01") == 356)
  6.    {
  7.       set("\x01",eval("\x01") + 70);
  8.       ┬º┬ºpush(true);
  9.       continue;
  10.    }
  11.    if(eval("\x01") == 426)
  12.    {
  13.       set("\x01",eval("\x01") - 116);
  14.       if(┬º┬ºpop())
  15.       {
  16.          set("\x01",eval("\x01") + 330);
  17.       }
  18.       continue;
  19.    }
  20.    if(eval("\x01") == 858)
  21.    {
  22.       set("\x01",eval("\x01") - 773);
  23.       ┬º┬ºpush(┬º┬ºpop() < ┬º┬ºpop());
  24.       break;
  25.    }
  26.    if(eval("\x01") == 309)
  27.    {
  28.       set("\x01",eval("\x01") + 4);
  29.       continue;
  30.    }
  31.    if(eval("\x01") == 869)
  32.    {
  33.       set("\x01",eval("\x01") - 579);
  34.       continue;
  35.    }
  36.    if(eval("\x01") == 290)
  37.    {
  38.       set("\x01",eval("\x01") + 162);
  39.       ┬º┬ºpush(true);
  40.       continue;
  41.    }
  42.    if(eval("\x01") == 390)
  43.    {
  44.       set("\x01",eval("\x01") + 468);
  45.       if(┬º┬ºpop())
  46.       {
  47.          set("\x01",eval("\x01") - 773);
  48.       }
  49.       continue;
  50.    }
  51.    if(eval("\x01") == 310)
  52.    {
  53.       set("\x01",eval("\x01") + 330);
  54.       break;
  55.    }
  56.    if(eval("\x01") == 115)
  57.    {
  58.       set("\x01",eval("\x01") + 595);
  59.       continue;
  60.    }
  61.    if(eval("\x01") == 85)
  62.    {
  63.       set("\x01",eval("\x01") + 205);
  64.       continue;
  65.    }
  66.    if(eval("\x01") == 52)
  67.    {
  68.       set("\x01",eval("\x01") + 338);
  69.       ┬º┬ºpush(true);
  70.       continue;
  71.    }
  72.    if(eval("\x01") == 640)
  73.    {
  74.       set("\x01",eval("\x01") - 327);
  75.       continue;
  76.    }
  77.    if(eval("\x01") == 313)
  78.    {
  79.       set("\x01",eval("\x01") + 359);
  80.       ┬º┬ºpush(true);
  81.       continue;
  82.    }
  83.    if(eval("\x01") == 672)
  84.    {
  85.       set("\x01",eval("\x01") + 13);
  86.       if(┬º┬ºpop())
  87.       {
  88.          set("\x01",eval("\x01") + 9);
  89.       }
  90.       continue;
  91.    }
  92.    if(eval("\x01") != 685)
  93.    {
  94.       if(eval("\x01") == 954)
  95.       {
  96.          set("\x01",eval("\x01") - 902);
  97.       }
  98.       else if(eval("\x01") == 694)
  99.       {
  100.          set("\x01",eval("\x01") - 642);
  101.       }
  102.       else if(eval("\x01") == 452)
  103.       {
  104.          set("\x01",eval("\x01") + 140);
  105.          if(┬º┬ºpop())
  106.          {
  107.             set("\x01",eval("\x01") - 157);
  108.          }
  109.       }
  110.       else
  111.       {
  112.          if(eval("\x01") == 592)
  113.          {
  114.             set("\x01",eval("\x01") - 157);
  115.             break;
  116.          }
  117.          if(eval("\x01") == 435)
  118.          {
  119.             set("\x01",eval("\x01") + 275);
  120.          }
  121.          else
  122.          {
  123.             if(eval("\x01") != 710)
  124.             {
  125.                if(eval("\x01") == 326)
  126.                {
  127.                   set("\x01",eval("\x01") - 100);
  128.                   if(!_global.CheckGoods)
  129.                   {
  130.                      _loc2_ = _global.CheckGoods = function()
  131.                      {
  132.                      }.prototype;
  133.                      _loc2_.Check_Goods = function()
  134.                      {
  135.                         var _loc5_ = undefined;
  136.                         this.Display = new DisplayScore();
  137.                         this.nShowScore = new ShowScore();
  138.                         if(_root.goods7.people == true && _root.goods7.flag == true)
  139.                         {
  140.                            removeMovieClip(_root.goods7.g7);
  141.                            if(_root.Attendant.sLeftGoods == "money")
  142.                            {
  143.                               _root.Attendant.sLeftGoods = null;
  144.                               removeMovieClip("goods_left");
  145.                               _root.goods7.xianshi.gotoAndPlay(2);
  146.                               _root.goods7.shine.gotoAndStop(1);
  147.                            }
  148.                            if(_root.Attendant.sRightGoods == "money")
  149.                            {
  150.                               _root.Attendant.sRightGoods = null;
  151.                               _root.goods7.xianshi.gotoAndPlay(2);
  152.                               _root.goods7.shine.gotoAndStop(1);
  153.                               removeMovieClip("goods_right");
  154.                            }
  155.                         }
  156.                         var _loc4_ = 1;
  157.                         while(_loc4_ <= 6)
  158.                         {
  159.                            if(_root["goods" + _loc4_]._visible == false)
  160.                            {
  161.                               removeMovieClip(_root["goods" + _loc4_]["g" + _root["goods" + _loc4_].nMyId]);
  162.                            }
  163.                            if(_root["goods" + _loc4_].people == true && _root["goods" + _loc4_]._visible == true)
  164.                            {
  165.                               removeMovieClip(_root["goods" + _loc4_]["g" + _loc4_]);
  166.                               switch(_loc4_)
  167.                               {
  168.                                  case 3:
  169.                                     _loc5_ = "cola";
  170.                                     break;
  171.                                  case 1:
  172.                                     _loc5_ = "milk";
  173.                                     break;
  174.                                  case 2:
  175.                                     _loc5_ = "candy";
  176.                                     break;
  177.                                  case 5:
  178.                                     _loc5_ = "oil";
  179.                                     break;
  180.                                  case 4:
  181.                                     _loc5_ = "coffee";
  182.                                     break;
  183.                                  case 6:
  184.                                     _loc5_ = "sendwich";
  185.                               }
  186.                               if(_root["goods" + _loc4_].Num > 0)
  187.                               {
  188.                                  if(_root["goods" + _loc4_].flag == true && _root.Attendant.sLeftGoods == null)
  189.                                  {
  190.                                     _root.Attendant.sLeftGoods = "goods" + _loc4_;
  191.                                     _root.attachMovie(_loc5_,"goods_left",_root.Attendant.getDepth() + 1);
  192.                                     if(_root["goods" + _loc4_].Num == 1)
  193.                                     {
  194.                                        _root["goods" + _loc4_]._visible = false;
  195.                                     }
  196.                                     if(_root["goods" + _loc4_].Num <= 0)
  197.                                     {
  198.                                        _root["goods" + _loc4_]._visible = false;
  199.                                     }
  200.                                     _root["goods" + _loc4_].Num--;
  201.                                     SetPos.SetLeftPos(_root.Attendant.sLeftGoods);
  202.                                     SetPos.SetRightPos(_root.Attendant.sRightGoods);
  203.                                     if(_root.Attendant.sRightGoods == null)
  204.                                     {
  205.                                        SetPos.SetRightPos(_root.Attendant.sLeftGoods);
  206.                                     }
  207.                                     _root["goods" + _loc4_].flag = false;
  208.                                     break;
  209.                                  }
  210.                                  if(_root["goods" + _loc4_].flag == true && _root.Attendant.sRightGoods == null)
  211.                                  {
  212.                                     _root.Attendant.sRightGoods = "goods" + _loc4_;
  213.                                     _root.attachMovie(_loc5_,"goods_right",_root.Attendant.getDepth() + 2);
  214.                                     if(_root["goods" + _loc4_].Num == 0)
  215.                                     {
  216.                                        _root["goods" + _loc4_]._visible = false;
  217.                                     }
  218.                                     else if(_root["goods" + _loc4_].Num > 1)
  219.                                     {
  220.                                     }
  221.                                     if(_root["goods" + _loc4_].Num <= 0)
  222.                                     {
  223.                                        _root["goods" + _loc4_]._visible = false;
  224.                                     }
  225.                                     _root["goods" + _loc4_].Num--;
  226.                                     SetPos.SetLeftPos(_root.Attendant.sLeftGoods);
  227.                                     SetPos.SetRightPos(_root.Attendant.sRightGoods);
  228.                                     _root["goods" + _loc4_].flag = false;
  229.                                     break;
  230.                                  }
  231.                               }
  232.                            }
  233.                            _loc4_ = _loc4_ + 1;
  234.                         }
  235.                         var _loc6_ = _root.Attendant._x + _global.LeftX;
  236.                         var _loc7_ = _root.Attendant._y + _global.LeftY;
  237.                         if(_root.Attendant.sLeftGoods != null && _root.Attendant.sRightGoods == null && !_root.Attendant.isGas || _root.Attendant.sLeftGoods == null && _root.Attendant.sRightGoods != null && !_root.Attendant.isGas)
  238.                         {
  239.                            _root.Attendant.gotoAndStop("walk_onehand");
  240.                            if(_root.bToRight == true)
  241.                            {
  242.                               trace("ToRight");
  243.                               _root.goods_left._x = _loc6_ - _global.LeftX + _global.RightX;
  244.                               _root.goods_right._x = _loc6_ - _global.LeftX + _global.RightX;
  245.                            }
  246.                            else
  247.                            {
  248.                               trace("ToRight false");
  249.                               _root.goods_left._x = _loc6_;
  250.                               _root.goods_right._x = _loc6_;
  251.                            }
  252.                            _root.goods_left._y = _loc7_;
  253.                            _root.goods_right._y = _loc7_ - _global.LeftY + _global.RightY;
  254.                            if(_root.Attendant.sLeftGoods == null && _root.Attendant.sRightGoods != null)
  255.                            {
  256.                               SetPos.SetLeftPos(_root.Attendant.sRightGoods);
  257.                               SetPos.SetRightPos(_root.Attendant.sRightGoods);
  258.                            }
  259.                         }
  260.                         else if(_root.Attendant.sLeftGoods != null && _root.Attendant.sRightGoods != null)
  261.                         {
  262.                            _root.Attendant.gotoAndStop("walk_twohand");
  263.                            _root.goods_left._x = _loc6_;
  264.                            _root.goods_left._y = _loc7_;
  265.                            _root.goods_right._x = _loc6_ - _global.LeftX + _global.RightX;
  266.                            _root.goods_right._y = _loc7_ - _global.LeftY + _global.RightY;
  267.                         }
  268.                         else if(_root.Attendant.sLeftGoods != null || _root.Attendant.sRightGoods != null && _root.Attendant.isGas)
  269.                         {
  270.                            _root.Attendant.gotoAndStop("jiayou_onehand");
  271.                            _root.goods_left._x = _loc6_;
  272.                            _root.goods_left._y = _loc7_;
  273.                            _root.goods_right._x = _loc6_;
  274.                            _root.goods_right._y = _loc7_ - _global.LeftY + _global.RightY;
  275.                         }
  276.                         else if(_root.Attendant.sLeftGoods == null && _root.Attendant.isGas)
  277.                         {
  278.                            _root.Attendant.gotoAndStop("jiayou");
  279.                         }
  280.                         else
  281.                         {
  282.                            _root.Attendant.gotoAndStop("walk_none");
  283.                         }
  284.                      };
  285.                      ┬º┬ºpush(ASSetPropFlags(_global.CheckGoods.prototype,null,1));
  286.                   }
  287.                   ┬º┬ºpop();
  288.                   break;
  289.                }
  290.                if(eval("\x01") == 226)
  291.                {
  292.                   set("\x01",eval("\x01") - 226);
  293.                }
  294.                break;
  295.             }
  296.             set("\x01",eval("\x01") - 384);
  297.          }
  298.       }
  299.       continue;
  300.    }
  301.    set("\x01",eval("\x01") + 9);
  302.    while(true)
  303.    {
  304.       if(┬º┬ºpop())
  305.       {
  306.          set("\x01",eval("\x01") + 8);
  307.       }
  308.       else
  309.       {
  310.          if(eval("\x01") == 323)
  311.          {
  312.             set("\x01",eval("\x01") - 323);
  313.             break loop0;
  314.          }
  315.          if(eval("\x01") == 8)
  316.          {
  317.             set("\x01",eval("\x01") + 37);
  318.             if(┬º┬ºpop())
  319.             {
  320.                set("\x01",eval("\x01") + 310);
  321.             }
  322.          }
  323.          else if(eval("\x01") == 831)
  324.          {
  325.             set("\x01",eval("\x01") - 689);
  326.          }
  327.          else
  328.          {
  329.             if(eval("\x01") != 355)
  330.             {
  331.                if(eval("\x01") == 45)
  332.                {
  333.                   set("\x01",eval("\x01") + 310);
  334.                }
  335.                else
  336.                {
  337.                   if(eval("\x01") != 638)
  338.                   {
  339.                      break loop0;
  340.                   }
  341.                   set("\x01",eval("\x01") + 22);
  342.                   if(┬º┬ºpop())
  343.                   {
  344.                      set("\x01",eval("\x01") - 582);
  345.                   }
  346.                   while(true)
  347.                   {
  348.                      if(eval("\x01") == 441)
  349.                      {
  350.                         set("\x01",eval("\x01") + 197);
  351.                         ┬º┬ºpush(true);
  352.                         continue;
  353.                      }
  354.                      if(eval("\x01") != 777)
  355.                      {
  356.                         if(eval("\x01") == 927)
  357.                         {
  358.                            set("\x01",eval("\x01") - 785);
  359.                         }
  360.                         else if(eval("\x01") == 142)
  361.                         {
  362.                            set("\x01",eval("\x01") + 635);
  363.                         }
  364.                         else if(eval("\x01") == 653)
  365.                         {
  366.                            set("\x01",eval("\x01") - 315);
  367.                            if(┬º┬ºpop())
  368.                            {
  369.                               set("\x01",eval("\x01") + 589);
  370.                            }
  371.                         }
  372.                         else if(eval("\x01") == 801)
  373.                         {
  374.                            set("\x01",eval("\x01") - 793);
  375.                            ┬º┬ºpush(true);
  376.                         }
  377.                         else
  378.                         {
  379.                            if(eval("\x01") == 660)
  380.                            {
  381.                               set("\x01",eval("\x01") - 582);
  382.                               break loop0;
  383.                            }
  384.                            if(eval("\x01") == 78)
  385.                            {
  386.                               set("\x01",eval("\x01") + 723);
  387.                            }
  388.                            else if(eval("\x01") == 513)
  389.                            {
  390.                               set("\x01",eval("\x01") + 288);
  391.                            }
  392.                            else
  393.                            {
  394.                               if(eval("\x01") == 338)
  395.                               {
  396.                                  set("\x01",eval("\x01") + 589);
  397.                                  break loop0;
  398.                               }
  399.                               if(eval("\x01") != 387)
  400.                               {
  401.                                  break;
  402.                               }
  403.                               set("\x01",eval("\x01") + 266);
  404.                               ┬º┬ºpush(true);
  405.                            }
  406.                         }
  407.                         continue;
  408.                      }
  409.                      set("\x01",eval("\x01") - 454);
  410.                      if(!_global.CheckNeed)
  411.                      {
  412.                         var _loc2_ = _global.CheckNeed = function()
  413.                         {
  414.                         }.prototype;
  415.                         _global.CheckNeed = function()
  416.                         {
  417.                         }.Check_Need = function()
  418.                         {
  419.                            var _loc10_ = undefined;
  420.                            var _loc7_ = true;
  421.                            var _loc6_ = true;
  422.                            var _loc5_ = true;
  423.                            var _loc11_ = true;
  424.                            var _loc9_ = true;
  425.                            var _loc8_ = String(_global.nScore);
  426.                            if(_root.shuazi.shuazi.s == "yes")
  427.                            {
  428.                               _loc9_ = false;
  429.                            }
  430.                            if(_root.ground_normal.daqi.c.s == "yes")
  431.                            {
  432.                               _loc11_ = false;
  433.                            }
  434.                            var _loc3_ = 1;
  435.                            while(_loc3_ <= _root.arrCarPos.length)
  436.                            {
  437.                               if(_root.arrCarPos[_loc3_ - 1].s == "yes")
  438.                               {
  439.                                  _loc7_ = false;
  440.                               }
  441.                               _loc3_ = _loc3_ + 1;
  442.                            }
  443.                            _loc3_ = 1;
  444.                            while(_loc3_ <= 6)
  445.                            {
  446.                               if(_root["pump" + _loc3_].s == "yes")
  447.                               {
  448.                                  _loc6_ = false;
  449.                               }
  450.                               _loc3_ = _loc3_ + 1;
  451.                            }
  452.                            _loc3_ = _loc8_.length;
  453.                            while(_loc3_ > 0)
  454.                            {
  455.                               var _loc4_ = 11 - _loc3_;
  456.                               if(!_root["score" + _loc4_].Stop)
  457.                               {
  458.                                  _loc5_ = false;
  459.                               }
  460.                               _loc3_ = _loc3_ - 1;
  461.                            }
  462.                            if(_loc7_ && _loc6_ && _loc5_ && _loc11_ && _loc9_ && _root.Attendant.sLeftGoods == null && _root.Attendant.sRightGoods == null)
  463.                            {
  464.                               _loc10_ = true;
  465.                            }
  466.                            else
  467.                            {
  468.                               _loc10_ = false;
  469.                            }
  470.                            return _loc10_;
  471.                         };
  472.                         ┬º┬ºpush(ASSetPropFlags(_global.CheckNeed.prototype,null,1));
  473.                      }
  474.                      ┬º┬ºpop();
  475.                   }
  476.                   continue;
  477.                   addr223:
  478.                }
  479.                break loop0;
  480.             }
  481.             set("\x01",eval("\x01") + 32);
  482.          }
  483.       }
  484.       ┬º┬ºgoto(addr223);
  485.    }
  486. }
  487.